<?php
class guide_model extends CI_Model {

    function __construct()
    {
        parent::__construct();
        
    }
    
    function getByID($ID)
    {
        $where=array("id"=>$ID,"delete"=>null);
        $query = $this->db->get_where("dtb_new",$where);
        return $query->result();
    }
    function getByAlias($Alias)
    {
        $where=array("Alias"=>$Alias,"delete"=>null);
        $query = $this->db->get_where("dtb_new",$where);
        return $query->result();
    }
    
}
?>
